1 /* This document will contain general rules of coding style that should be obeyed */
4 Glade widget naming guidelines:
6 - Widgets should be named according to the following examples:
15 - Never more than 80 chars horizontally
16 - Only use C-Style commenting
17 - function names: lower case, separated by underscore
18 - Using lint is strongly recommended
19 - Use 4 spaces, not tabs
20 - Use GLIB where possible (e.g. no malloc, but rather g_new)
22 Code should be formatted according to following example:
26 char *buffer; /* Comments to the right of declarations */
27 char *start, *end, *last;
29 /* This separates blocks of declarations */
38 bindtextdomain(GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR);
39 #else /* Comments to the right of preproc directives */
44 foo(int number, int len, char *name)
47 for (int i = 0; i < 7; i++)
59 The procedure bar is even less interesting.
60 it does nothing particular :)
66 c = (long) foo(2, 5, "end");
68 /* Write "Hello" to Console */
86 && ((mask[0] == '\0') ||
87 (mask[1] == '\0' && ((mask[0] == '0') || (mask[0] == '*')))))
92 function_with_lots_of_arguments(char* arg1, char* arg2, int arg3, int arg4,
93 char* arg5, void* arg6, int arg7, float arg8, float arg9, float arg10,
94 int arg11, char* arg12)